package org.kfive.nova.algorithm.graph;

import java.io.BufferedReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/*
* Graph.java
* Created  by  lizhanwu
* Created on 2016-6-7 10:11
*/
public class Graph {

    //顶点数
    private  int V;

    //边数目
    private  int E;

    private List<Integer>[] adj;

    public Graph(int V){
        this.V = V;
        this.E = 0;
        this.adj = new List[V];
        for (int i=0;i<V;i++){
            adj[i] = new ArrayList<Integer>();
        }
    }

    public Graph(BufferedReader reader){
        String line = null;
        try {
            while ((line = reader.readLine())!=null){

            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }


}
